package com.mmy.fta.usercenter.config;

import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author qingyu.meng
 * @date 2021年10月19日 11:42 上午
 * @Description
 */
@Configuration
@ComponentScan(basePackages = "com.mmy.fta.usercenter")
public class Config {
    @Bean
    public RestTemplate restTemplate(RestTemplateBuilder builder){
        return builder.build();
    }
}
